/* 
 * File:   at24c02.h
 * Author: Administrator
 *
 * Created on 2014年4月3日, 下午4:32
 */

#ifndef AT24C02_H
#define	AT24C02_H

#ifdef	__cplusplus
extern "C" {
#endif

#define AT24C01ROMSIZE 128
#define AT24C01PAGESIZE 8
extern unsigned char At24c_WriteData;
extern unsigned char At24c_ReadData;
extern unsigned char At24c_WriteBuff[32];
extern unsigned char At24c_ReadBuff[64];

extern signed char At24cReadByte(unsigned char address,unsigned char RomAdd,unsigned char *data);
extern signed char At24cReadBytes(unsigned char address,unsigned char RomAdd ,unsigned char num ,unsigned char *Des);
extern signed char At24cWriteByte(unsigned char address,unsigned char RomAdd,unsigned char data);
extern signed char At24cWriteBytes(unsigned char address,unsigned char RomAdd ,unsigned char num ,unsigned char *buff);
#ifdef	__cplusplus
}
#endif

#endif	/* AT24C02_H */

